﻿package net.wangit.view.unit;

import net.wangit.framework.exception.NestableRuntimeException;

public class UnitConfigurationException extends NestableRuntimeException {

	private static final long serialVersionUID = 1L;

	public UnitConfigurationException(String s) {
		super(s);
	}

	public UnitConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public UnitConfigurationException(String s, String domain, String unitId,
			String prop, Throwable cause) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\nunit configuration error: please check ").append(prop)
				.append(" in ").append(domain).append("/").append(unitId)
				.toString(), cause);
	}

	public UnitConfigurationException(String s, String domain, String unitId,
			String prop) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\nunit configuration error: please check ").append(prop)
				.append(" in ").append(domain).append("/").append(unitId)
				.toString());
	}
}
